package io.shqyang.done.slice.main.base;

import ohos.aafwk.ability.AbilitySlice;
import ohos.aafwk.content.Intent;

public abstract class BaseAbilitySlice extends AbilitySlice {

    public abstract int layoutId();
    public abstract void initView();
    public void initEvent() {}
    public abstract void loadData(boolean isRefresh);

    @Override
    protected void onStart(Intent intent) {
        super.onStart(intent);
        super.setUIContent(layoutId());
        initView();
        initEvent();
        loadData(true);
    }
}
